package com.thilux.servicemanager.validator;

import com.thilux.servicemanager.annotation.ManagedService;
import com.thilux.servicemanager.manager.Service;

public class ServiceValidator {

    
    public static boolean isClassAManagedService(Class<?> clazz){
	
	boolean result = false;

	if(clazz.isAnnotationPresent(ManagedService.class)
		&& Service.class.isAssignableFrom(clazz)){
	    
	    result = true;
	    
	}
	
	return result;
	
    }
    
    public static boolean isClassAService(Class<?> clazz){
	
	boolean result = false;

	if(Service.class.isAssignableFrom(clazz)){
	    
	    result = true;
	    
	}
	
	return result;
	
    }
    
}
